﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo1
{
    class Class3:Class2
    {
        //职称（Title）、工资号（Wageno）
        private string _title;
        private int _wageno;
        public Class3(int id, string name, char sex, long cardid, string tel, string title, int wageno)
            : base(id, name, sex, cardid, tel)
        {
            this.Title = title;
            this.Wageno = wageno;
        }
        public void GetMeg()
        {
            Console.WriteLine("你是{0}，编号为{1}，是个{2}生，身份证号为{3}，职称为{4}，工资号{5}，联系方式：{6}"
                , base.Name, base.Id, base.Sex, base.Cardid, this.Title, this.Wageno, base.Tel);

        }

        public string Title { get => _title; set => _title = value; }
        public int Wageno { get => _wageno; set => _wageno = value; }
    }
}
